package com.xiaoke.domain;

public class HttpCode {
    /**
     * 请求成功
     */
    public static final Integer OK = 200;
    /**
     * 创建成功
     */
    public static final Integer CREATE = 201;
    /**
     * [POST/PUT/PATCH] 当创建一个对象时，发生一个验证错误
     */
    public static final Integer UNPROCESABLE_ENTITY = 422;

    /**
     * 删除失败
     */
    public static final Integer DELETE_ERROR = 405;
    /**
     * 删除成功
     */
    public static final Integer DELETED = 204;
    /**
     * 请求的地址不存在或者包含不支持的参数
     */
    public static final Integer BAD_REQUEST = 400;
    /**
     * 未授权
     */
    public static final Integer UNAUTHORIZED = 401;
    /**
     * 请求的资源不存在
     */
    public static final Integer NOT_FOUND = 404;

    /**
     * 请求的资源不存在
     */
    public static final Integer SERVER_EXCEPTION = 500;
}
